package com.itheima.mapper;

import com.itheima.pojo.Clazz;
import com.itheima.pojo.ClazzQueryParam;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface ClazzMapper {

    //分页查询所有班级
    List<Clazz> selectClazz(ClazzQueryParam clazzQueryParam);


    //删除班级
    void deleteClazz(Integer id);

    //添加班级
    void insertClazz(Clazz clazz);
    //根据id查询
    Clazz inquireById(Integer id);

    //修改部门
    void updateClazz(Clazz clazz);

    List<Clazz> selectAll();
}
